package com.cennavi.bigdata.baotou.util;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ZuoWeiGuang on 10/26 2016.
 */
public class DataSource {

    public enum SourceType {
        BaotouTraffic,
    }

    public enum LayerType {
        Traffic,
    }

    public static List<LayerType> getLayers(SourceType srcType) {
        ArrayList<LayerType> targetTypes = new ArrayList<>();

        switch (srcType) {
            case BaotouTraffic:{
                targetTypes.add(LayerType.Traffic);
            }
            break;
        }

        return targetTypes;
    }

    public static SourceType getSourceType(LayerType lyrType) {
        switch (lyrType) {
            case Traffic:
                return SourceType.BaotouTraffic;
        }
        return null;
    }
}
